package com.ah.service.impl;

import com.ah.service.IGoodsService;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class GoodsService implements IGoodsService {



    @SentinelResource("goods")
    public void queryGoods(){
        System.err.println("查询商品");
    }

    @Override
    public String add() {
        return "新增商品";
    }

    @SentinelResource("hot")
    public void findById(Integer id) {
        System.out.println("id = " + id);
    }
}
